/* 
 * File:   Log.cpp
 * Author: niyaz
 * 
 * Created on March 20, 2011, 9:22 AM
 */

#include "Log.h"
#include <iostream>

using namespace std;
Log* Log::l;

void
Log::sDebugging (string m)
{
  if (filewrite) out << m << endl;
  if (verb) cout << m << endl;
}

void
Log::sError (string m)
{
  if (filewrite) out << m << endl;
  cout << m << endl;
  throw;
}

void
Log::sMessage (string m)
{
  if (filewrite) out << m << endl;
  cout << m << endl;
}

